home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Misc / InstallerNG / developer / gui / example / igui_GetGUIEvent.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  1KB  |  53 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  ask the GUI for the last event. the different events are defined
  10.  *  in libraries/installergui.h and set by the igui_QuietWaitApp()
  11.  *  function. you (or the InstallerNG itself) can clear the event by
  12.  *  calling igui_ClearGUIEvent()
  13.  *
  14.  *  IN:  application - pointer to the private application structure
  15.  *
  16.  *  OUT: the last event
  17.  *
  18.  *
  19.  */
  20.  
  21. /********************************************************************
  22.  *
  23.  *  STATIC
  24.  *
  25.  */
  26.  
  27. /********************************************************************
  28.  *
  29.  *  EXTERN
  30.  *
  31.  */
  32.  
  33. /********************************************************************
  34.  *
  35.  *  PUBLIC
  36.  *
  37.  */
  38.  
  39. /********************************************************************
  40.  *
  41.  *  CODE
  42.  *
  43.  */
  44.  
  45. long __asm igui_GetGUIEvent(register __a0 APTR application)
  46. {
  47.   #ifdef DEBUG
  48.   DEBUG_MAKRO
  49.   #endif
  50.  
  51.   return (((struct Application *) application)->app_CurrentGUIEvent);
  52. }
  53.